package com.huaweicloud.sdk.hss.v5.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

/**
 * 影响主机数量
 */
public class VulnerabilityHostNumberInfo {

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "important")

    private Integer important;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "common")

    private Integer common;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "test")

    private Integer test;

    public VulnerabilityHostNumberInfo withImportant(Integer important) {
        this.important = important;
        return this;
    }

    /**
     * 重要主机数量
     * minimum: 0
     * maximum: 10000
     * @return important
     */
    public Integer getImportant() {
        return important;
    }

    public void setImportant(Integer important) {
        this.important = important;
    }

    public VulnerabilityHostNumberInfo withCommon(Integer common) {
        this.common = common;
        return this;
    }

    /**
     * 一般主机数量
     * minimum: 0
     * maximum: 10000
     * @return common
     */
    public Integer getCommon() {
        return common;
    }

    public void setCommon(Integer common) {
        this.common = common;
    }

    public VulnerabilityHostNumberInfo withTest(Integer test) {
        this.test = test;
        return this;
    }

    /**
     * 测试主机数量
     * minimum: 0
     * maximum: 10000
     * @return test
     */
    public Integer getTest() {
        return test;
    }

    public void setTest(Integer test) {
        this.test = test;
    }

    @Override
    public boolean equals(java.lang.Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        VulnerabilityHostNumberInfo that = (VulnerabilityHostNumberInfo) obj;
        return Objects.equals(this.important, that.important) && Objects.equals(this.common, that.common)
            && Objects.equals(this.test, that.test);
    }

    @Override
    public int hashCode() {
        return Objects.hash(important, common, test);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class VulnerabilityHostNumberInfo {\n");
        sb.append("    important: ").append(toIndentedString(important)).append("\n");
        sb.append("    common: ").append(toIndentedString(common)).append("\n");
        sb.append("    test: ").append(toIndentedString(test)).append("\n");
        sb.append("}");
        return sb.toString();
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }

}
